<!--{template admin/header.html}-->

<div id="main">
    <div id="shortcut">
        <a href="{APP_URL}/index.php/{$m}">返回首页</a> <span>&raquo;</span> <a href="{APP_URL}/index.php/{$m}/{$p}">站点信息</a>
    </div>
    <div id="content">
        <div class="ui-formular-info info ui-state-highlight ui-corner-all">
            <p>
                <span class="ui-icon ui-icon-info" style="float: left; margin-right: 0.3em;"></span>
                <em>*</em>为必填项
            </p>
            <p id="ajax_return" style="display:hidden">
                <span class="ui-icon ui-icon-info" style="float: left; margin-right: 0.3em;"></span>
                <span id="ajax_msg"></span>
            </p>
        </div>
        <div class="ui-formular-error"></div>

        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">站点信息</a></li>
                {loop $content_type $k $v}
                <li><a href="#tabs-{$k}">{$v}</a></li>
                {/loop}
            </ul>

            <div id="tabs-1">
                <form id="form-1" action="{APP_URL}/index.php/{$m}/{$p}/a/post1" method="post">
                    <input type="hidden" name="a" value="post1" />
                    <p><label for="sitename">站点名称：<em title="Needed">*</em></label>
                        <input type="text" id="sitename" name="sitename" class="text ui-widget-content ui-corner-all" value="{$site['sitename']}" /></p>
                    <p><label for="title">站点标题：<em title="Needed">*</em></label>
                        <input type="text" class="text ui-widget-content ui-corner-all" id="title" name="title" value="{$site['title']}" />（该名称将显示于浏览器标题栏）</p>
                    <p><label for="desc">站点描述：<em title="Needed">*</em></label>
                        <input type="text" class="text ui-widget-content ui-corner-all" id="desc" name="desc" value="{$site['desc']}" /></p>
                    <p><label for="keywords">　关键字：<em title="Needed">*</em></label>
                        <input type="text" class="text ui-widget-content ui-corner-all" id="keywords" name="keywords" value="{$site['keywords']}" /></p>
                    <p><label for="addr">详细地址：<em title="Needed">*</em></label>
                        <input type="text" class="text ui-widget-content ui-corner-all" id="addr" name="addr" value="{$site['addr']}" /></p>
                    <p><label for="email">邮件地址：<em title="Needed">*</em></label>
                        <input type="text" class="text ui-widget-content ui-corner-all" id="email" name="email" value="{$site['email']}" /></p>
                    <p><label for="tel">客服电话：<em title="Needed">*</em></label>
                        <input type="text" class="text ui-widget-content ui-corner-all" id="tel" name="tel" value="{$site['tel']}" /></p>
                    <p><label for="close_visit">站点关闭：<em title="Needed">*</em></label>
                        <label><input type="radio" class="radio ui-widget-content ui-corner-all" id="close" name="close_visit" value="Y"{if $site['close_visit'] == 'Y'} checked="checked"{/if} />是</label>
                        <label><input type="radio" class="radio ui-widget-content ui-corner-all" id="close" name="close_visit" value="N"{if $site['close_visit'] == 'N'} checked="checked"{/if} />否</label></p>
                    <p><label for="close_reason">关闭原因：<em title="Needed">*</em></label>
                        <input type="text" class="text ui-widget-content ui-corner-all" id="close_reason" name="close_reason" value="{$site['close_reason']}" /></p>
                    <p><label for="user_inform">用户公告：<em title="Needed">*</em></label>
                        <input type="text" class="text ui-widget-content ui-corner-all" id="user_inform" name="user_inform" value="{$site['user_inform']}" /></p>
                    <p><label for="site_inform">站点公告：<em title="Needed">*</em></label>
                        <input type="text" class="text ui-widget-content ui-corner-all" id="site_inform" name="site_inform" value="{$site['site_inform']}" /></p>
                    <p><label for="close_regist">关闭注册：<em title="Needed">*</em></label>
                        <label><input type="radio" class="radio vote ui-widget-content ui-corner-all" id="close_regist" name="close_regist" value="Y"{if $site['close_regist'] == 'Y'} checked="checked"{/if} />是</label>
                        <label><input type="radio" class="radio ui-widget-content ui-corner-all" id="close_regist" name="close_regist" value="N"{if $site['close_regist'] == 'N'} checked="checked"{/if} />否</label></p>
                    <hr class="ui-widget-content" />
                    <input type="button" id="submit_siteinfo" value="保存" />
                </form>
            </div>
            {loop $content_type $k $v}
            <div id="tabs-{$k}">
                <form id="form-{$k}">
                    <p align="center">{echo $CKEditor->editor($k.'_form',$$k)}</p>
                    <hr class="ui-widget-content" />
                    <p align="center"><input type="button" class="submit_content" content_type="{$k}" value="保存" /></p>
                </form>
            </div>
            {/loop}
        </div>
        <div style="height:1px; margin-top:-1px;clear: both;overflow:hidden;"></div>
    </div>

</div>

<!--{template admin/footer.html}-->
